import time
from selenium import webdriver
driver = webdriver.Edge()
driver.get("http://121.43.169.97:8848/pageA.html")
#   窗口最大化
driver.maximize_window()
time.sleep(1)
#   下拉窗口到最底
driver.execute_script("window.scrollTo(0,10000)")
time.sleep(1)
#   上拉窗口到最顶
driver.execute_script("window.scrollTo(0,0)")
time.sleep(1)
driver.quit()